package com.zr.d_c.serviceimpl;

import com.zr.d_c.dao.EvaluateDao;
import com.zr.d_c.dao.OrderDao;
import com.zr.d_c.daoimpl.EvaluateDaoImpl;
import com.zr.d_c.daoimpl.OrderDaoImpl;
import com.zr.d_c.model.Evaluate;
import com.zr.d_c.service.EvaluateService;

public class EvaluateServiceImpl implements EvaluateService {

	EvaluateDao evaluatedao = new EvaluateDaoImpl();
	OrderDao orderdao = new OrderDaoImpl();
	public int addEvaluateByOid(Evaluate ev, int oid) {
		// TODO Auto-generated method stub
		orderdao.updateOisevaluateByOid(oid);
		return evaluatedao.insertEvaluateByOid(ev, oid);
	}

}
